"""
Task 2

Write a function that takes in two numbers from the user via input(), call the numbers a and b, and then returns the
value of squared a divided by b, construct a try-except block which raises an exception if the two values given by
the input function were not numbers, and if value b was zero (cannot divide by zero).
"""


def function_1():
    a, b = map(str, input("Enter two numbers separated by comma: ").split(','))
    try:
        print(f"Result: {(float(a) * float(a)) / float(b)}")
    except ValueError:
        print("Enter valid numbers")
    except ZeroDivisionError:
        print("The second number can't be zero")


if __name__ == '__main__':
    function_1()
